__init__.py 495 B

1234567891011121314151617
  1. import pip._internal.utils.inject_securetransport # noqa
  2. from pip._internal.utils.typing import MYPY_CHECK_RUNNING
  3. if MYPY_CHECK_RUNNING:
  4. from typing import Optional, List
  5. def main(args=None):
  6. # type: (Optional[List[str]]) -> int
  7. """This is preserved for old console scripts that may still be referencing
  8. it.
  9. For additional details, see https://github.com/pypa/pip/issues/7498.
  10. """
  11. from pip._internal.utils.entrypoints import _wrapper
  12. return _wrapper(args)